import request from '@/utils/request'

/**
 * 获取频道数据
 * @returns Promise对象
 */
export function getChannelApi() {
  return request.get('/channels')
}
/**
 * 获取文章详情
 * @param {*} id 文章ID
 */
export function getArticleApi(id) {
  return request.get(`/mp/articles/${id}`)
}
